package com.springboot.demo.mapper;


import com.cx.item.common.mapper.BaseMapper;
import com.springboot.demo.model.example.GoodsExample;
import com.springboot.demo.model.model.Goods;
import com.springboot.demo.model.query.GoodsListQuery;
import com.springboot.demo.model.vo.GoodsListVo;

import java.util.List;

public interface GoodsMapper extends BaseMapper<Goods, GoodsExample> {

    /**
     * 商品列表（客户端）
     *
     * @param goodsListQuery
     * @return
     */
    List<GoodsListVo> getGoodsListByClient(GoodsListQuery goodsListQuery);

    /**
     * 商品列表（管理端）
     *
     * @param goodsListQuery
     * @return
     */
    List<GoodsListVo> getGoodsList(GoodsListQuery goodsListQuery);

    List<Goods> selectByExampleWithBLOBs(GoodsExample example);

    int updateByPrimaryKeyWithBLOBs(Goods record);
}